package com.neusoft.demo.controller;

import com.neusoft.demo.pojo.Business;
import com.neusoft.demo.server.BusinessServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@CrossOrigin
@Controller
@RequestMapping("/business")
public class BusinessController {
    @Autowired
    BusinessServer businessServer;
    @ResponseBody
    @RequestMapping("login")
    public Business businessLogin(String bname,String pwd){
        return businessServer.businessLogin(bname,pwd);
    }
}
